using System;
using System.Collections.Generic;
using System.Text;

namespace NBusiness.VisualStudio.Engine
{
    public class ScopeNode
    {
        private List<ScopeNode> nested;

        public IList<ScopeNode> NestedScopes
        {
            get { return nested; }
        }

        public virtual string Name
        {
            get { return ""; }
        }

        public virtual string Doc
        {
            get { return ""; }
        }

        //public virtual Location Start
        //{
        //    get
        //    {
        //        return Location.None;
        //    }
        //}
        //public virtual Location End
        //{
        //    get
        //    {
        //        return Location.None;
        //    }
        //}

        public void Add(ScopeNode node)
        {
            if (nested == null) nested = new List<ScopeNode>();
            nested.Add(node);
        }
    }
}
